package com.youth.koodoReaderManager.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.oas.annotations.EnableOpenApi;
import springfox.documentation.service.Contact;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;

@Configuration
@EnableOpenApi
public class Swagger3Configuration {
	@Bean
	public Docket docket() {
		return new Docket(DocumentationType.OAS_30).apiInfo(
				new ApiInfoBuilder()
						.contact(new Contact("koodo-reader", "https://www.koodoreader.com/zh", ""))
						.title("开源电子阅读")
						.build()
		);
	}
}
